package iodemo;

import java.io.*;

public class HangHao
{
    public static void main (String[] args)
    {
        try(BufferedReader bufferedReader = new BufferedReader(new FileReader("D:/iKnowIKnow.txt"));
            BufferedWriter bufferedWriter = new BufferedWriter(new FileWriter("D:/NoYouKnow.txt")))
        {
            String temp = "";
            
            int i = 1;
            while((temp = bufferedReader.readLine()) != null)
            {
                bufferedWriter.write(i + " " + temp);
                bufferedWriter.newLine();
                
                i++;
            }
            
            bufferedWriter.flush();
        }
        catch(IOException e)
        {
            e.printStackTrace();
        }
    }
}
